//订单管理
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const order = {
  path: '/order',
  name: 'order',
  component: Layout,
  redirect: '/order/courseOrder',
  key: 'order',
  meta: {
    title: '订单'
  },
  children: [{
    path: 'courseOrder',
    name: 'courseOrder',
    key: 'courseOrder',
    component: Three,
    redirect: '/order/courseOrder/orderList',
    meta: {
      title: '课程订单'
    },
    children: [{
      path: 'orderList',
      name: 'orderList',
      key: 'orderList',
      component: () => import('@/views/order/courseOrder/orderList/list'),
      meta: {
        title: '课程订单'
      }
    },{
      path: 'orderDetail',
      name: 'orderDetail',
      key: 'orderDetail',
      hidden:true,
      component: () => import('@/views/order/courseOrder/orderList/detail'),
      meta: {
        title: '课程订单详情'
      }
    },{
      path: 'boxExpressDetail',
      name: 'boxExpressDetail',
      key: 'boxExpressDetail',
      hidden:true,
      component: () => import('@/views/order/courseOrder/orderList/showBoxExpress'),
      meta: {
        title: '查看盒子物流'
      }
    },{
      path: 'refundOption',
      name: 'refundOption',
      key: 'refundOption',
      hidden:true,
      component: () => import('@/views/order/courseOrder/orderList/refundOption'),
      meta: {
        title: '退款'
      }
    },{
      path: 'boxExpress',
      name: 'boxExpress',
      key: 'boxExpress',
      component: () => import('@/views/order/courseOrder/boxExpress/list'),
      meta: {
        title: '盒子物流'
      }
    },{
      path: 'bulkShip',
      name: 'bulkShip',
      key: 'bulkShip',
      hidden:true,
      component: () => import('@/views/order/courseOrder/boxExpress/bulkShip'),
      meta: {
        title: '批量发货'
      }
    }]
  },{
    path: 'goodsOrder',
    name: 'goodsOrder',
    key: 'goodsOrder',
    component: Three,
    alwaysShow:true,
    redirect: '/order/goodsOrder/mallOrderList',
    meta: {
      title: '商品订单'
    },
    children: [{
      path: 'mallOrderList',
      name: 'mallOrderList',
      key: 'mallOrderList',
      component: () => import('@/views/order/goodsOrder/mall/list'),
      meta: {
        title: '商城订单'
      }
    },{
      path: 'mallOrderDetail',
      name: 'mallOrderDetail',
      key: 'mallOrderDetail',
      hidden:true,
      component: () => import('@/views/order/goodsOrder/mall/detail'),
      meta: {
        title: '订单详情'
      }
    },{
      path: 'pointOrderList',
      name: 'pointOrderList',
      key: 'pointOrderList',
      component: () => import('@/views/order/goodsOrder/point/list'),
      meta: {
        title: '积分商城订单'
      }
    },{
      path: 'pointOrderDetail',
      name: 'pointOrderDetail',
      key: 'pointOrderDetail',
      hidden:true,
      component: () => import('@/views/order/goodsOrder/point/detail'),
      meta: {
        title: '订单详情'
      }
    }]
  }]
}

export default order
